package cn.xopencode.score.api.enums.training;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 技能比武名次分数枚举
 */
public enum PrizewinningScoreEnum implements IntArrayValuable {

    FIRST(5, "公司第一"),
    SECOND(3, "公司第二"),
    THIRD(2,"公司第三"),
    PRAISE(1,"通报表扬");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PrizewinningScoreEnum::getScore).toArray();

    /**
     *  级别
     */
    private final Integer score;
    /**
     * 描述
     */
    private final String name;

    PrizewinningScoreEnum(Integer score, String name) {
        this.score = score;
        this.name = name;
    }

    public Integer getScore() {
        return score;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
